﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
///NewsDetailBLL 的摘要说明
/// </summary>
public class NewsDetailBLL
{
    NewsDetailDAL newsDetailDAL = new NewsDetailDAL();
    public List<News_Detail> PagingByTypeName(int pageIndex, int pageCount, out int count, string typeName)
    {
        return newsDetailDAL.PagingByTypeName(pageIndex, pageCount, out count, typeName);
    }

    public DataTable GetNewsDetailByParam(NewDetailQuery q)
    {
        return newsDetailDAL.GetNewsDetailByParam(q);
    }

    private DataTable gglb;
    /// <summary>
    /// 个股聊吧
    /// </summary>
    public DataTable Gglb
    {
        get
        {
            if (gglb != null)
            {
                return gglb;
            }
            NewDetailQuery query = new NewDetailQuery();
            query.Sign = 2;
            query.Topnum = 6;
            query.TypeId = 73;
            gglb = newsDetailDAL.GetNewsDetailByParam(query);
            return gglb;
        }
    }

    private DataTable szjht;
    /// <summary>
    /// 实战精华帖
    /// </summary>
    public DataTable Szjht
    {
        get
        {
            if (szjht != null)
            {
                return szjht;
            }
            NewDetailQuery query = new NewDetailQuery();
            query.Sign = 2;
            query.TypeId = 57;
            query.Topnum = 6;
            szjht = newsDetailDAL.GetNewsDetailByParam(query);
            return szjht;
        }
    }

}